#!/bin/bash

# Program:
#     Use function to repeat information.
# History:
#     2015/08/25    wxb    First release

function printit(){
    echo "Your choice is $1"                # $1 is internal parameter
}

echo "This program will print you selection !"

case $1 in
    "one")
        printit 1
        ;;
    "two")
        printit 2
        ;;
    "three")
        printit 3
        ;;
    *)
        echo "Usage $0 {one|two|three}"
        ;;
esac
